package com.travel.service.impl;

import java.util.List;

import javax.annotation.Resource;


import com.travel.utils.Page;
import org.springframework.stereotype.Service;

import com.travel.common.pojo.SysOpUserMessageExampleOveride;
import com.travel.common.pojo.userMessage;
import com.travel.common.pojo.userMessageExample;
import com.travel.dao.userMessageMapper;
import com.travel.service.SysOpService;

@Service
public class SysOpServiceImpl implements SysOpService {
	@Resource private userMessageMapper userMessageMapper;

	@Override
	public List<userMessage> selectAllList(String name, String tel, Integer sex, Page page) {

		SysOpUserMessageExampleOveride messageExample = new SysOpUserMessageExampleOveride();
		messageExample.or().andNameLike(name).andTelLike(tel);
		messageExample.setPageSize(page.getPageSize());
		messageExample.setStartRow(page.getStartPage());
		return userMessageMapper.selectByExample(messageExample);
	}

	@Override
	public int getCount(String name, String tel, Integer sex) {
		return 0;
	}


}
